
	
<!DOCTYPE html>
<html lang="ru">
	<head>
		<meta charset="utf-8">
		<title>Золотое Время (Golden Time)</title>
		<script type="text/javascript" src="template/js/jquery.js"></script>
		<script type="text/javascript" src="template/js/core.js"></script>
		<link rel="stylesheet" href="template/style.css" type="text/css" media="screen" />
		<?php		
			include 'library/core.php';
			$admin_obj = new admin();
		?>
		<script type="text/javascript">
			var HTTP_HOST = '<?php echo HTTP_HOST; ?>';
		</script>
	</head>
	<body>
		<header>
			<div class="in_header">
				<div class="logo">
					<a href="index.php" title="logo"><img src="images/logo.png" alt="logo"/></a>
				</div>
				<nav>
					<ul>
					<? $mas = $admin_obj->in_menu();
						if ($mas!=false)
							for ($i=0; $i<count($mas);$i++)
								echo '<li><a href="page.php?idpage='.$mas[$i]['id'].'"title="'.$mas[$i]['title'].'">'.$mas[$i]['title'].'</a></li>';						
					?>
					</ul>
				</nav>
			</div>
		</header>
		<div class="content">
			<section class="main">	
			<? 	$admin_obj = new admin();
				$mas = $admin_obj -> select_pages($_GET['idpage']);
				echo $mas['content'];?>
			</section>
			<aside>
				<?if (!isset($_SESSION['user']['id'])):?>
				<div class="widget widget-auth">
					<h3 class="title">Форма входа</h3>
					<div class="author">
						
						<form action="" method="get">
							<p><label for="login_auth">Логин</label><input type="text" name="login_auth" id="login_auth" maxlength="255"/></p>
							<p><label for="password_auth">Пароль</label><input type="password" name="password_auth" id="password_auth" maxlength="255"/></p>
							<p><input type="button" value="Войти" id="user-auth"></p>
						</form>
						<a href="library/auth.php?action=reg" title="Реестрация" class="regist">Реестрация</a>
						
						<a href="library/auth.php?action=restore" title="Забыли пароль" class="lost">Забыли пароль</a>
					</div>
				</div>
				<? 
					//else:?> <script type="text/javascript"> //window.location.href = 'library/profile.php?action=cabinet'</script>
				<?endif;?>
			</aside>
		</div>	
		<footer>
			<div class="in_footer">
				<span class="copy">(c)kdsflkd fkdlkd dfkdflkkf.</span>
				<span class="text">djdkjd ddjdjd erlljker kf;sdks; k</span>
			</div>
		</footer>
		</header>
	</body>
	</html>
